// pages/fuwu/fuwu.js
Page({
  data: {
    // 物业管理服务项目
    propertyManagement: [
      { name: '人员关怀', icon: 'contact'  , path: '/pages/renyuanguanghuai/renyuan'},
      // { name: '楼盘表', icon: 'building' },
      // { name: '住户审核', icon: 'user' },
      // { name: '事件上报', icon: 'warning' },
      // { name: '投诉建议', icon: 'chat' },
      // { name: '维修处理', icon: 'tools' },
      // { name: '身份确认', icon: 'idcard' },
        { name: '便民助手', icon: 'info', path:'/pages/bianminzhushou/bianminzhushou'},
      { name: '访客管理', icon: 'friends',path:'/pages/addvisite/addvisite' },

      { name: '我的房屋', icon: 'home-o', path: '/pages/property/my-houses/my-houses'},
      { name: '入住房屋', icon: 'home-o', path: '/pages/property/resident/resident'},
      { name: '装修报备', icon: 'home-o', path: '/pages/property/renovation/renovation'},
      { name: '投诉建议', icon: 'other-pay', path: '/pages/property/complaint/complaint'},
      { name: '房屋报修', icon: 'other-pay', path: '/pages/property/repair/repair'},
      { name: '缴费管理', icon: 'setting',path:'/pages/jiaofei/wuye/wuye'}


    ],
    // 门禁访客服务项目
    accessControl: [
      // { name: '访客邀请', icon: 'friend-add' },
      { name: '电子通行证', icon: 'qr' , path: '/pages/wt/dztxzgl/txewm/txewm'},
      { name: '电子通行证管理', icon: 'setting' , path: '/pages/wt/dztxzgl/dztxzgl' },
        // { name: '远程开门', icon: 'unlock' ,path:'/pages/remotedoor_lxy/remotedoor_lxy'},
      // { name: 'NFC门禁', icon: 'card' }
    ],
    // 智能预警服务项目
    smartWarning: [
      { name: '周界告警', icon: 'warning' },
      { name: '烟感告警', icon: 'fire' },

      // { name: '车辆告警', icon: 'Van' },
      { name: '人员告警', icon: 'contact' },
    ]
  } ,
  // 统一处理菜单项点击事件
  onGridItemClick(e) {
    const { path, name } = e.currentTarget.dataset;
    if (path) {
      wx.navigateTo({ url: path });
    } else {
      wx.showToast({
        title: `${name}功能开发中`,
        icon: 'none',
        duration: 2000
      });
      console.warn('未配置跳转路径:', e.currentTarget.dataset);
    }
  },
});